# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Mozilla Browser code.
#
# The Initial Developer of the Original Code is
# IBM Corporation.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#  Mark Mentovai <mark@moxienet.com>
#  Nick Kreeger <nick.kreeger@park.edu>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

DEPTH		= ../..
topsrcdir       = @top_srcdir@
srcdir          = @srcdir@
VPATH           = @srcdir@

include $(DEPTH)/config/autoconf.mk

include $(topsrcdir)/config/rules.mk

CORREO_VERSION=0.1
_RELNOTE_VERSION:=$(subst .,-,$(CORREO_VERSION))

# The packager runs in the dist directory, paths must be relative to there.
MOZ_PKG_MAC_DSSTORE=../correo/resources/package/dsstore
MOZ_PKG_MAC_BACKGROUND=../correo/resources/package/background.jpg
MOZ_PKG_MAC_ICON=../correo/resources/package/disk.icns
MOZ_PKG_MAC_RSRC=../correo/resources/package/license.r
# The docs aren't copied into an objdir, chase them in the srcdir.
# Use $(_ABS_TOPSRCDIR) for an absolute path, handling both srcdir and
# objdir builds.
MOZ_PKG_MAC_EXTRA=--copy "$(_ABS_TOPSRCDIR)/camino/docs/ReadMe.rtf" --copy "$(_ABS_TOPSRCDIR)/camino/docs/Release Notes $(_RELNOTE_VERSION).rtf:Release Notes.rtf" --attribute "E:/ReadMe.rtf:/Release Notes.rtf"

include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

# The core build system thinks it's Mozilla.  Override what's necessary.
# Do this after including packager.mk because it has dependencies that
# break if these are already set to Camino when it's included.
MOZ_APP_DISPLAYNAME=Correo
MOZ_PKG_APPNAME=correo

# packager.mk has its own exclude list that's appropriate for toolkit apps
# but not appropriate for the Xcode-built Camino.  Specifically, it excludes
# the files produced by Camino.app/Contents/MacOS/Camino -autoRegister YES,
# although they belong in the package.  Override.
NO_PKG_FILES=

# Override toolkit/mozapps/installer/package-name.mk.
PKG_BASENAME=$(MOZ_APP_DISPLAYNAME)
